from greenlet import greenlet

def producer(x):
    for i in range(8):
        C.switch(chr(ord(x) + i))



def consumer(x):
    for i in range(8):
        print(x)
        x = P.switch(x)


P = greenlet(producer)
C = greenlet(consumer)

P.switch('a')
